import React, { useState } from 'react';
import { View, StyleSheet } from 'react-native';
import { ReaderView } from '../components/ReaderView';
import { useRoute } from '@react-navigation/native';

export const ReaderScreen = () => {
  const route = useRoute();
  const { content } = route.params;
  const [fontSize, setFontSize] = useState(16);
  const [backgroundColor, setBackgroundColor] = useState('#FFFFFF');

  return (
    <View style={styles.container}>
      <ReaderView
        content={content}
        fontSize={fontSize}
        backgroundColor={backgroundColor}
      />
    </View>
  );
};

const styles = StyleSheet.create({
  container: {
    flex: 1,
  },
});
